//
//  CoreDataManager.h
//  WhereToTravel
//
//  Created by dlios on 15/10/20.
//  Copyright © 2015年 zhoushengmin. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CoreDataManager : NSObject
// 管理对象上下文(BOSS)
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
//管理对象模型(表结构)
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
//持久化存储协调器(助理)
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
//保存上下文(保存对数据的修改)
- (void)saveContext;

// 沙盒路径
- (NSURL *)applicationDocumentsDirectory;

//单例方法获取对象
+ (CoreDataManager *)shareCoreDataManager;

//查看是否已经收藏
- (BOOL)sendId:(NSString *)cityId;

@end
